Skip to content

fix(lexer): handle backslash-newline line continuation between tokens#295

Merged
chaliy merged 2 commits intomainfrom
claude/issue-289-line-continuation-76a2F
Feb 26, 2026
Merged

fix(lexer): handle backslash-newline line continuation between tokens#295
chaliy merged 2 commits intomainfrom
claude/issue-289-line-continuation-76a2F

Conversation

@chaliy
Copy link
Copy Markdown
Contributor

@chaliy chaliy commented Feb 26, 2026

Summary

  • skip_whitespace now consumes \<newline> pairs (line continuation) between tokens
  • Previously, \ at a token boundary entered read_word, consumed \<newline>, then returned None (empty word = EOF)

Test plan

  • issue_289_backslash_continuation_if — multi-line if [ ] || \ condition
  • issue_289_backslash_continuation_commandecho hello \<nl> world

Closes #289

@chaliy chaliy merged commit 3857cb7 into main Feb 26, 2026
16 checks passed
@chaliy chaliy deleted the claude/issue-289-line-continuation-76a2F branch March 12, 2026 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: backslash line continuation (\\newline) fails in some contexts

2 participants